package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.New;
import cn.wolfcode.trip.base.domain.UserNew;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

/**
 * 日报的接口
 */
import java.util.List;


public interface INewService {

    PageInfo<New> query(QueryObject qo);

    void saveOrUpdate(New entity);

    String getContentById(Long id);

    New get(Long id);

    New getNewByMaxDate(Long id);

    void saveNewsDetailToUser(Long userId,Long newsId);

    void deleteNewsDetailToUser(Long userId, Long newsId);

    String getNewsForUser(Long userId, Long newsId);

    List<New> getAllNewsByUser(Long userId);
}
